package jike.demo16.code03;

/**
 * @param
 * @author oyz
 * @version 1.0.4
 * @description: 把一些参数提取出来封装成对象
 * @date 2022/11/9 21:00
 */
public class ApiStatInfo {

    private String api ;
    private long requestCount;
    private long errorCount;
    private long durationOfSeconds;
    private long timeOut;

    public ApiStatInfo(String api, long requestCount, long errorCount, long durationOfSeconds, long timeOut) {
        this.api = api;
        this.requestCount = requestCount;
        this.errorCount = errorCount;
        this.durationOfSeconds = durationOfSeconds;
        this.timeOut = timeOut;
    }

    public ApiStatInfo(){

    }

    public String getApi() {
        return api;
    }

    public void setApi(String api) {
        this.api = api;
    }

    public long getRequestCount() {
        return requestCount;
    }

    public void setRequestCount(long requestCount) {
        this.requestCount = requestCount;
    }

    public long getErrorCount() {
        return errorCount;
    }

    public void setErrorCount(long errorCount) {
        this.errorCount = errorCount;
    }

    public long getDurationOfSeconds() {
        return durationOfSeconds;
    }

    public void setDurationOfSeconds(long durationOfSeconds) {
        this.durationOfSeconds = durationOfSeconds;
    }

    public long getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(long timeOut) {
        this.timeOut = timeOut;
    }
}
